package com.sc.myspringbootmo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.myspringbootmo.dao.IContentDao;
import com.sc.myspringbootmo.pojo.Content;
import com.sc.myspringbootmo.service.IContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 内容（视频/图文/文本）表 服务实现类
 * </p>
 *
 * @author svblack
 * @since 2025-09-23 03:36:11
 */
@Service
public class ContentServiceImpl extends ServiceImpl<IContentDao, Content> implements IContentService {
    @Autowired
    IContentDao contentDao;

    @Override
    public Boolean add(Content content) {
        return contentDao.add(content);
    }

    @Override
    public IPage<Content> selectList(Page<Content> page) {
        return contentDao.selectList(page);
    }
}
